local skynet = require "skynet"
require "skynet.manager"

---@class PlayerService
local M = {}
local getter = {}
local handler = {}

-- 玩家基础数据
local players = {}
-- 演示登录
function M.login(player_id)
    -- NOTE:只是简单测试
    return {
        id = player_id,
        name = "player_" .. player_id
    }
end

function M.logout(player_id)
    players[player_id] = nil
end

-- 启动函数
function M.start()
    -- 所有游戏模块init之后调用
end

function M.init()
    skynet.dispatch_lua_queue(M)
end

return M